package org.kiwi.data.transaction;

import org.springframework.transaction.support.TransactionSynchronizationManager;

/**
 * Created by jack on 16/12/25.
 */
public class DefaultSynchronizationManager implements SynchronizationManager {

    @Override
    public void initSynchronization() {
        TransactionSynchronizationManager.initSynchronization();
    }

    @Override
    public boolean isSynchronizationActive() {
        return TransactionSynchronizationManager.isSynchronizationActive();
    }

    @Override
    public void clearSynchronization() {
        TransactionSynchronizationManager.clear();
    }

}
